package d1130.r214.stringdemo;

public class Demo02 {
    public static void main(String[] args) {
        //使用字节创建字符串
        byte[] arr={97,98,99};
        String str1=new String(arr);
        System.out.println(str1);
        //
        char[] arr2={'a','b','c'};
        String str2=new String(arr2);
        System.out.println(str2);
        String name="张三";
        name="李四";
        System.out.println(name);

    }
}
